package com.ww.sound_emission.domain.VO;


import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class MachineSensorData  {
    private List<Double> s1Values;
    private List<Double> s2Values;
    private List<Double> s3Values;
    private List<Integer> countlist;


    // 无参构造函数
    public MachineSensorData() {
        this.s1Values = new ArrayList<>();
        this.s2Values = new ArrayList<>();
        this.s3Values = new ArrayList<>();
        this.countlist = new ArrayList<>();
    }


    // 构造函数，接收参数进行初始化
    public MachineSensorData(List<Double> s1Values, List<Double> s2Values, List<Double> s3Values, List<Integer> countlist) {
        this.s1Values = s1Values;
        this.s2Values = s2Values;
        this.s3Values = s3Values;
        this.countlist = countlist;
    }


    // Getter 方法
    public List<Double> getS1Values() {
        return s1Values;
    }


    public List<Double> getS2Values() {
        return s2Values;
    }


    public List<Double> getS3Values() {
        return s3Values;
    }


    public List<Integer> getCountlist() {
        return countlist;
    }


    // Setter 方法
    public void setS1Values(List<Double> s1Values) {
        this.s1Values = s1Values;
    }


    public void setS2Values(List<Double> s2Values) {
        this.s2Values = s2Values;
    }


    public void setS3Values(List<Double> s3Values) {
        this.s3Values = s3Values;
    }


    public void setCountlist(List<Integer> countlist) {
        this.countlist = countlist;
    }


    // 重写 toString 方法，方便打印对象信息
    @Override
    public String toString() {
        return "MachineSensorData{" +
                "s1Values=" + s1Values +
                ", s2Values=" + s2Values +
                ", s3Values=" + s3Values +
                ", countlist=" + countlist +
                '}';
    }
}
